// eslint-disable-next-line import/no-cycle
import apiCreator from '../../utils/apiCreator';
import config from '../../utils/config';

const api = apiCreator();

export default {
  // 获取 产品概览left
  getProductViewInfo: (query) => api.get(`${config.interfaces.type5}maat-report/v1/getProductInfo`, query),
  // 获取 产品数量和规模走势图的 left
  getProductCharts: (query) => api.post(`${config.interfaces.type5}maat-report/v1/getProductAndScaleLineChart`, query),
  // 获取 产品数量和规模走势图的 right
  getResultList: (query) => api.post(`${config.interfaces.type5}maat-report/v1/getProductAndScaleTop`, query),

  // 获取月日
  getMonthAndDayData: (query) => api.post(`${config.interfaces.type5}maat-report/v1/getProductAndScaleYearCompare`, query),
  // 获取 机构总览 left
  getInstitutionOverviewLeft: (query) => api.post(`${config.interfaces.type5}maat-report/v1/getProductAndScaleProvince`, query),
  // 获取 机构总览 right
  getInstitutionOverviewRight: (query) => api.get(`${config.interfaces.type5}maat-report/v1/getProductAndScaleProvinceTenantInfo`, query),
};
